// db/index.js文件内容
const { AsyncAliRds } = require('ali-rds-async')

const config = {
  host: '127.0.0.1',
  port: 3306,
  user: 'root',
  password: 'root',
  database: 'serverless_test'
}
// 创建连接
const mysql = new AsyncAliRds(config)

module.exports = mysql
